package com.his.entity;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * (Record)实体类
 *
 * @author makejava
 * @since 2020-10-23 18:16:12
 */
@Data
@Validated
public class Record implements Serializable {
    private static final long serialVersionUID = 742923833312737246L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 病人id
     */

    private Integer patientId;
    /**
     * 主治医生id
     */
    private Integer doctorId;

    /**
     * 医生姓名
     */
    private String doctorName;

    private Integer nurseId;
    /**
     * 检查时间
     */
    @NotNull(message = "检查时间不能为空")
    private Date checkTime;
    /**
     * 病症
     */
    @NotBlank(message = "病症描述不能为空")
    private String symptom;
    /**
     * 诊断
     */
    @NotBlank(message = "医生诊断不能为空")
    private String diagnosis;
    /**
     * 过敏史
     */
    @NotBlank(message = "过敏史不能为空")
    private String allergy;
    /**
     * 片子
     */
    private String images;
    /**
     * 是否复诊
     */
    @NotBlank(message = "请勾选是否复诊")
    private String isRecheck;
    /**
     * 是否传染
     */
    @NotBlank(message = "请勾选是否有传染疾病")
    private String isInfectious;
    /**
     * 是否住院
     */
    private String isHospitalized;
    /**
     * 创建时间
     */
    private Date createTime;

    private Date updateTime;
    /**
     * 是否删除
     */
    private Integer isDelete;

}